<template>
  <div style="width: 100%;">
    <p style="margin-top: 10px;">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">后台首页</el-breadcrumb-item>
        <el-breadcrumb-item>会员列表</el-breadcrumb-item>
      </el-breadcrumb>
    </p>
    <div style="text-align:left;margin-top: 30px;">
      <el-button type="success">添加会员</el-button>
    </div>
    <el-table
      :data="tableData"
      tooltip-effect="dark"
      style="width: 100%"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column label="商品ID" prop="_id"></el-table-column>
      <el-table-column label="商品图片">
        <template slot-scope="scope">
          <img width="50" :src="scope.row.pic" alt />
        </template>
      </el-table-column>
      <el-table-column prop="title" label="商品名称"></el-table-column>
      <el-table-column prop="price" label="商品价钱"></el-table-column>
      <el-table-column label="操作" width="450">
        <template slot-scope="scope">
          <el-button style="margin-top:5px;">基础设置</el-button>
          <el-button style="margin-top:5px;">商品规格</el-button>
          <el-button style="margin-top:5px;">商品属性</el-button>
          <el-button style="margin-top:5px;">媒体设置</el-button>
          <el-button style="margin-top:5px;">商品详情</el-button>
          <el-button style="margin-top:5px;">折扣设置</el-button>
          <el-button style="margin-top:5px;">删除商品</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination :page-sizes="[8,10,15,20]" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
  </div>
</template>

<script>
import { getList } from "../../utils/http";
export default {
  name: "",
  data() {
    return {
      activeName: "first",
      tableData: [],
    };
  },
  methods: {
    handleSelectionChange() {},
    handleSizeChange() {},
    handleCurrentChange() {},
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
};
</script>

<style scoped>
</style>